#ifndef HDEVICESELECT_H
#define HDEVICESELECT_H

#include "common/datatype.h"

#include <QWidget>
#include <QDialog>

class QListWidget;
class QCheckBox;
class QComboBox;

class HDeviceSelect : public QWidget
{
    Q_OBJECT
public:
    explicit HDeviceSelect(QWidget *parent = nullptr);

    void initData(const  QVector<DeviceInfo>& devInfo);
signals:

public slots:

private:
    QListWidget* m_devListWidget;
    QCheckBox* m_promiscuousMode;

    QComboBox* m_protocolBox;

    QPushButton* m_canelBtn;
    QPushButton* m_confirmBtn;
};


class HDeviceSelectDlg : public QDialog
{
    Q_OBJECT
public:
    explicit HDeviceSelectDlg(QWidget* parent = nullptr);
    void initData(const  QVector<DeviceInfo>& devInfo);

private:
    HDeviceSelect* m_context;

};

#endif // HDEVICESELECT_H
